home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •AdventureLand• / Adventures / HyperQuest 1.03 ••• / HyperQuest 1.03 еее / card_29230.txt < prev    next >
Text File  |  1990-10-02  |  9KB  |  370 lines

  1. -- card: 29230 from stack: in.03 –µ–µ–µ
  2. -- bmap block id: 2112
  3. -- flags: 0000
  4. -- background id: 2766
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.   global ladderHole
  9.   if ladderHole
  10.   then set the loc of card button "ladder" to 138,177
  11. else set the loc of card button "ladder" to 180,120
  12. send cardOpened to background
  13. end openCard
  14.  
  15. on move
  16.   global direction,chase,blasting,ladderHole,blastDam,holeDam
  17.   global causeOfDeath
  18.   if direction = "south" or direction = "rear" then
  19.     if blastDam then
  20.       go to card id 26754
  21.     else
  22.       if holeDam then
  23.         go to card id 27307
  24.       else
  25.         go to card id 26200
  26.       end if
  27.     end if
  28.     exit move
  29.   end if
  30.   if direction = "down" then
  31.     if ladderHole then
  32.       go to card id 30264
  33.       exit move
  34.     else
  35.       answer "Do you really want to go into the shaft??" with "yes"or"no"
  36.       if it is "no" then exit move
  37.       put "shaft1" into causeOfDeath
  38.       go to card id 3409
  39.       exit move
  40.     end if
  41.   end if
  42.   pass move
  43. end move
  44.  
  45.  
  46. on closeCard
  47.   set the cursor to 4
  48.   put "" into field 3
  49. end closeCard
  50.  
  51. on take
  52.   global object,carried,ladderHole,oldRoom,newRoom,cardID,prevID
  53.   put last word of object into obj
  54.   delete first char of obj
  55.   delete last char of obj
  56.   if obj="ladder" then
  57.     hide object
  58.     set the loc of object to 180,120
  59.     put false into ladderHole
  60.     put "30264" into oldRoom
  61.     put "6984" into newRoom
  62.     send roomChange to background
  63.     put cardID into prevID
  64.   end if
  65.   -- remember to update carried if you do not pass take
  66.   pass take
  67. end take
  68.  
  69. on drop
  70.   global object,dropRoom,carried,ladderHole
  71.   answer "Drop object in this room, or into the shaft?" with "shaft" or "room"
  72.   if it="shaft" then
  73.     if ladderHole then
  74.       put "30264" into dropRoom
  75.     else
  76.       put "6984" into dropRoom
  77.     end if
  78.   end if
  79.   -- remember to update carried if you do not pass drop
  80.   pass drop
  81. end drop
  82.  
  83. on use
  84.   global object,carried,ladderHole,oldRoom,newRoom
  85.   put last word of object into obj
  86.   delete first char of obj
  87.   delete last char of obj
  88.   if obj="ladder" then
  89.     show object
  90.     set the loc of object to 170,134
  91.     set the loc of object to 159,148
  92.     set the loc of object to 148,162
  93.     set the loc of object to 138,177
  94.     put "The rope ladder is tied to the pitons and leads into the shaft." into field 3
  95.     put true into ladderHole
  96.     put "6984" into oldRoom
  97.     put "30264" into newRoom
  98.     send roomChange to background
  99.     exit use
  100.   end if
  101.   -- update carried if object lost (or do so in inv. card button)
  102.   pass use
  103. end use
  104.  
  105.  
  106.  
  107.  
  108.  
  109. -- part 16 (button)
  110. -- low flags: 80
  111. -- high flags: 2000
  112. -- rect: left=128 top=226 right=262 bottom=162
  113. -- title width / last selected line: 0
  114. -- icon id / first selected line: 9301 / 9301
  115. -- text alignment: 1
  116. -- font id: 0
  117. -- text size: 12
  118. -- style flags: 0
  119. -- line height: 16
  120. -- part name: knife
  121. ----- HyperTalk script -----
  122. on mouseUp
  123.   global takeFlag,examFlag,object,cardID
  124.   put the name of the target into object
  125.   if takeFlag = true
  126.   then send take to card id cardID
  127. else put "a knife" into field 3
  128. put false into examFlag
  129. end mouseUp
  130.  
  131.  
  132.  
  133. -- part 17 (button)
  134. -- low flags: 80
  135. -- high flags: 2000
  136. -- rect: left=79 top=224 right=260 bottom=113
  137. -- title width / last selected line: 0
  138. -- icon id / first selected line: 1015 / 1015
  139. -- text alignment: 1
  140. -- font id: 0
  141. -- text size: 12
  142. -- style flags: 0
  143. -- line height: 16
  144. -- part name: nodule
  145. ----- HyperTalk script -----
  146. on mouseUp
  147.   global takeFlag,examFlag,object,cardID
  148.   put the name of the target into object
  149.   if takeFlag = true
  150.   then send take to card id cardID
  151. else put "a silicon sphere" into field 3
  152. put false into examFlag
  153. end mouseUp
  154.  
  155.  
  156.  
  157. -- part 19 (button)
  158. -- low flags: 80
  159. -- high flags: 2000
  160. -- rect: left=195 top=153 right=189 bottom=229
  161. -- title width / last selected line: 0
  162. -- icon id / first selected line: 1019 / 1019
  163. -- text alignment: 1
  164. -- font id: 0
  165. -- text size: 12
  166. -- style flags: 0
  167. -- line height: 16
  168. -- part name: bomb
  169. ----- HyperTalk script -----
  170. on mouseUp
  171.   global takeFlag,examFlag,object,cardID
  172.   put the name of the target into object
  173.   if takeFlag = true
  174.   then send take to card id cardID
  175. else put "a time bomb" into field 3
  176. put false into examFlag
  177. end mouseUp
  178.  
  179.  
  180.  
  181. -- part 20 (button)
  182. -- low flags: 80
  183. -- high flags: 2000
  184. -- rect: left=36 top=158 right=194 bottom=70
  185. -- title width / last selected line: 0
  186. -- icon id / first selected line: 24317 / 24317
  187. -- text alignment: 1
  188. -- font id: 0
  189. -- text size: 12
  190. -- style flags: 0
  191. -- line height: 16
  192. -- part name: key
  193. ----- HyperTalk script -----
  194. on mouseUp
  195.   global takeFlag,examFlag,object,cardID
  196.   put the name of the target into object
  197.   if takeFlag = true
  198.   then send take to card id cardID
  199. else put "a key" into field 3
  200. put false into examFlag
  201. end mouseUp
  202.  
  203.  
  204.  
  205. -- part 21 (button)
  206. -- low flags: 80
  207. -- high flags: 2000
  208. -- rect: left=26 top=211 right=247 bottom=60
  209. -- title width / last selected line: 0
  210. -- icon id / first selected line: 7012 / 7012
  211. -- text alignment: 1
  212. -- font id: 0
  213. -- text size: 12
  214. -- style flags: 0
  215. -- line height: 16
  216. -- part name: gem
  217. ----- HyperTalk script -----
  218. on mouseUp
  219.   global takeFlag,examFlag,object,cardID
  220.   put the name of the target into object
  221.   if takeFlag = true
  222.   then send take to card id cardID
  223. else put "a glowing gem" into field 3
  224. put false into examFlag
  225. end mouseUp
  226.  
  227.  
  228.  
  229. -- part 22 (button)
  230. -- low flags: 80
  231. -- high flags: 2000
  232. -- rect: left=49 top=112 right=148 bottom=83
  233. -- title width / last selected line: 0
  234. -- icon id / first selected line: 23078 / 23078
  235. -- text alignment: 1
  236. -- font id: 0
  237. -- text size: 12
  238. -- style flags: 0
  239. -- line height: 16
  240. -- part name: orb
  241. ----- HyperTalk script -----
  242. on mouseUp
  243.   global takeFlag,examFlag,object,cardID
  244.   put the name of the target into object
  245.   if takeFlag = true
  246.   then send take to card id cardID
  247. else put "a crystal orb" into field 3
  248. put false into examFlag
  249. end mouseUp
  250.  
  251.  
  252.  
  253. -- part 35 (button)
  254. -- low flags: 00
  255. -- high flags: 0000
  256. -- rect: left=99 top=164 right=187 bottom=174
  257. -- title width / last selected line: 0
  258. -- icon id / first selected line: 0 / 0
  259. -- text alignment: 1
  260. -- font id: 0
  261. -- text size: 12
  262. -- style flags: 0
  263. -- line height: 16
  264. -- part name: 
  265. ----- HyperTalk script -----
  266. on mouseUp
  267.   global examFlag,direction,cardID
  268.   if examFlag then
  269.     put "a shaft leading down.  It would be dangerous " into field 3
  270.     put "to try to climb down without proper equipment" after field 3
  271.     put false into examFlag
  272.   else
  273.     put "down" into direction
  274.     send move to card id cardID
  275.   end if
  276. end mouseUp
  277.  
  278.  
  279.  
  280. -- part 18 (button)
  281. -- low flags: 80
  282. -- high flags: 2000
  283. -- rect: left=163 top=102 right=138 bottom=197
  284. -- title width / last selected line: 0
  285. -- icon id / first selected line: 14953 / 14953
  286. -- text alignment: 1
  287. -- font id: 0
  288. -- text size: 12
  289. -- style flags: 0
  290. -- line height: 16
  291. -- part name: ladder
  292. ----- HyperTalk script -----
  293. on mouseUp
  294.   global takeFlag,examFlag,object,cardID,ladderHole,direction
  295.   put the name of the target into object
  296.   if takeFlag then
  297.     send take to card id cardID
  298.     exit mouseUp
  299.   end if
  300.   if examFlag then
  301.     put "a rope ladder" into field 3
  302.     put false into examFlag
  303.     exit mouseUp
  304.   end if
  305.   if ladderHole then
  306.     put "down" into direction
  307.     send move to card id cardID
  308.     exit mouseUp
  309.   else
  310.     put "a rope ladder" into field 3
  311.     exit mouseUp
  312.   end if
  313. end mouseUp
  314.  
  315.  
  316.  
  317. -- part 40 (button)
  318. -- low flags: 00
  319. -- high flags: 0000
  320. -- rect: left=125 top=152 right=164 bottom=152
  321. -- title width / last selected line: 0
  322. -- icon id / first selected line: 0 / 0
  323. -- text alignment: 1
  324. -- font id: 0
  325. -- text size: 12
  326. -- style flags: 0
  327. -- line height: 16
  328. -- part name: 
  329. ----- HyperTalk script -----
  330. on mouseUp
  331.   global examFlag,takeFlag,direction,cardID
  332.   if takeFlag then
  333.     put "You can't take the pitons. They are solidly attached." into field 3
  334.     put false into takeFlag
  335.   else
  336.     put "Two pitons imbebbed in the stone floor." into field 3
  337.     put false into examFlag
  338.   end if
  339. end mouseUp
  340.  
  341.  
  342.  
  343. -- part 41 (button)
  344. -- low flags: 00
  345. -- high flags: 0001
  346. -- rect: left=117 top=186 right=200 bottom=156
  347. -- title width / last selected line: 0
  348. -- icon id / first selected line: 0 / 0
  349. -- text alignment: 1
  350. -- font id: 0
  351. -- text size: 12
  352. -- style flags: 0
  353. -- line height: 16
  354. -- part name: 
  355.  
  356.  
  357. -- part contents for background part 25
  358. ----- text -----
  359. Square Room
  360. (looking north)
  361.  
  362. -- part contents for background part 24
  363. ----- text -----
  364. You are in a small square room with a doorway to the south.  There is a smooth-walled shaft leading to a room about 30 feet below.  It looks like it would be dangerous to attempt climbing in the shaft without proper equipment.
  365.  
  366.  
  367.  
  368. -- part contents for background part 36
  369. ----- text -----
  370. 0